<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>converter</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
  </head>
  		<h3>String->Rectangle转换器</h3>
  		<s:form action="converterAction_rectangleConverter" method="post" theme="simple">
  			请输入长和宽（格式：长:宽）：字符串->Rectangel对象<br>
  			<s:textfield name="rectangle"></s:textfield>
  			<s:submit value="提交"></s:submit>
  		</s:form>
  		<hr>
  		<h3>Rectangle对象->字符串</h3>
  		<s:property value="rectangle"/>
  		<hr>
  		<h3>String->List转换器</h3>
  		<s:form action="converterAction_hobbiesConverter">
  			爱好：<s:checkboxlist list="{'打篮球','游泳','唱歌','跑步'}" name="hobbies" />
  			<s:submit value="提交"></s:submit>
  		</s:form>
  		<hr>
  		<h3>遍历输出List集合中的爱好</h3>
  		<s:iterator value="hobbies">
  			<s:property />
  		</s:iterator>
  <body>
  </body>
</html>
